/*将数组内容随机不重复输出*/
import java.util.Random;
public class chou {
    public static void main(String[] args){
        int[] arr= {2,588,888,1000,10000};
        Random ran = new Random();
        //打乱顺序
        for(int i =0 ;i<arr.length;i++){
            int temp ;
            int index=ran.nextInt(arr.length);
            temp = arr[i];
            arr[i] = arr[index];
            arr[index] = temp;
        }
        //遍历
        for(int j = 0;j<arr.length;j++){
            System.out.print(arr[j]+" ");
        }
    }
}
